import service from '@/utils/request'

// @Tags MasterBOMFrame
// @Summary 创建MasterBOM-斋架主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMFrame true "创建MasterBOM-斋架主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /masterBOMFrame/createMasterBOMFrame [post]
export const createMasterBOMFrame = (data) => {
  return service({
    url: '/masterBOMFrame/createMasterBOMFrame',
    method: 'post',
    data
  })
}

// @Tags MasterBOMFrame
// @Summary 删除MasterBOM-斋架主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMFrame true "删除MasterBOM-斋架主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMFrame/deleteMasterBOMFrame [delete]
export const deleteMasterBOMFrame = (params) => {
  return service({
    url: '/masterBOMFrame/deleteMasterBOMFrame',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMFrame
// @Summary 批量删除MasterBOM-斋架主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MasterBOM-斋架主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMFrame/deleteMasterBOMFrame [delete]
export const deleteMasterBOMFrameByIds = (params) => {
  return service({
    url: '/masterBOMFrame/deleteMasterBOMFrameByIds',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMFrame
// @Summary 更新MasterBOM-斋架主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMFrame true "更新MasterBOM-斋架主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /masterBOMFrame/updateMasterBOMFrame [put]
export const updateMasterBOMFrame = (data) => {
  return service({
    url: '/masterBOMFrame/updateMasterBOMFrame',
    method: 'put',
    data
  })
}

// @Tags MasterBOMFrame
// @Summary 用id查询MasterBOM-斋架主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MasterBOMFrame true "用id查询MasterBOM-斋架主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /masterBOMFrame/findMasterBOMFrame [get]
export const findMasterBOMFrame = (params) => {
  return service({
    url: '/masterBOMFrame/findMasterBOMFrame',
    method: 'get',
    params
  })
}

// @Tags MasterBOMFrame
// @Summary 分页获取MasterBOM-斋架主档列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取MasterBOM-斋架主档列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /masterBOMFrame/getMasterBOMFrameList [get]
export const getMasterBOMFrameList = (params) => {
  return service({
    url: '/masterBOMFrame/getMasterBOMFrameList',
    method: 'get',
    params
  })
}
